<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="fck" uri="/WEB-INF/FCKeditor.tld"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="<%=request.getContextPath() %>/css/Style.css" type="text/css" rel="stylesheet">
<link>
<script type="text/javascript">
	var nodeid='<%=request.getParameter("nodeid") %>';
	function checkSubmit() {
		var content = document.getElementById("content");
		var isError = false;
		if (content == "") {
			alert("请输入内容");
		}
		document.getElementById("nodeid").value=nodeid;
		document.getElementById("n_form").submit();
	}
</script>
</head>
<body>
<form  method="post" action="<%=request.getContextPath() %>/admin/addIntroduce.htm" id="n_form">
<input type="hidden" name="nodeid" value="" id="nodeid"/>
<table border="0" cellspacing="0" cellpadding="0" class="thead" width="100%">
	<tr><td style="padding:3px;margin:3px;">当前位置:添加企业简介</td></tr>
</table>
<table cellpadding="2" cellspacing="1" border="0" width="100%" align="center">
	<tr>
		<td colspan="3" align="center" style="color: red;font-weight: bold;"><s:actionmessage/></td>
	</tr>
	
	<tr>
		<td width="10%" align="right" class='td1'>文本内容<font color='#FF0000'>*</font>：</td>
		<td width="80%" class='td1'>
		<fck:editor id="content" height="400" width="100%" toolbarSet="Default" imageBrowserURL="../filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector" linkBrowserURL="../filemanager/browser/default/browser.html?Connector=connectors/jsp/connector" flashBrowserURL="../filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector" imageUploadURL="../filemanager/upload/simpleuploader?Type=Image" linkUploadURL="../filemanager/upload/simpleuploader?Type=File" flashUploadURL="../filemanager/upload/simpleuploader?Type=Flash">
		</fck:editor> </td>
		<td width="10%" ><span id="content_msg" class="errorMessage"><s:fielderror fieldName="content"/></span></td>
	</tr>
	<tr align="center">
		<s:if test="method=='success'">
			<td colspan="3" class='td1'><input type="button" onclick="window.location.href='<%=request.getContextPath() %>/admin/getNews.htm?nodeid=${nodeid}'" value="确定"/></td>
		</s:if>
		<s:else>
		<td colspan="3" class='td1'><input type='button' value='增加' onclick="checkSubmit();"> <input type="button" value="返回" onclick="window.history.go(-1);";></td>
		</s:else>
	</tr>
</table>
</form>
</body>
</html>